package com.neu.his.mapper;

import com.neu.his.entity.Role;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

@Repository
public interface RoleMapper extends BaseMapper<Role> {

    //获取对应id-role的menu，id=-1时获取全部role对应menu
    public List<Role> getRoleMenu(Long id);

    //获取对应id-role的user，
    public List<Role> getRoleUser(Long id);
}
